.class final Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;
.super Ljava/lang/Object;
.source "ImageFullscreen.java"

# interfaces
.implements Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;


# static fields
.field static final IMPLEMENTATION_ID:Ljava/lang/Integer;

.field static sIsShowing:Z


# instance fields
.field mActivity:Landroid/app/Activity;

.field private mCloseRunnable:Ljava/lang/Runnable;

.field private mHandler:Landroid/os/Handler;

.field private mShowtime:I


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 40
    const/4 v0, 0x0

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->IMPLEMENTATION_ID:Ljava/lang/Integer;

    return-void
.end method

.method constructor <init>()V
    .locals 0

    .prologue
    .line 35
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method private autoClose(Ljava/lang/Integer;)V
    .locals 4
    .parameter "showtime"

    .prologue
    .line 115
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->mHandler:Landroid/os/Handler;

    .line 116
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen$1;

    invoke-direct {v0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen$1;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->mCloseRunnable:Ljava/lang/Runnable;

    .line 123
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->mCloseRunnable:Ljava/lang/Runnable;

    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result v2

    mul-int/lit16 v2, v2, 0x3e8

    int-to-long v2, v2

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 124
    return-void
.end method


# virtual methods
.method public getAttachParameters()Landroid/view/ViewGroup$LayoutParams;
    .locals 1

    .prologue
    .line 138
    const/4 v0, 0x0

    return-object v0
.end method

.method public onCreate(Landroid/os/Bundle;Landroid/app/Activity;)Landroid/view/View;
    .locals 6
    .parameter "savedInstanceState"
    .parameter "curerntActivity"

    .prologue
    const/4 v5, -0x2

    const/4 v1, 0x0

    .line 69
    iput-object p2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->mActivity:Landroid/app/Activity;

    .line 70
    sget-object v2, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->sImageAdaptor:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;

    .line 71
    .local v2, sImageAdaptor:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;
    if-eqz v2, :cond_0

    iget-object v3, v2, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mInterstitialView:Landroid/view/View;

    if-nez v3, :cond_1

    .line 86
    :cond_0
    :goto_0
    return-object v1

    .line 74
    :cond_1
    iget-object v0, v2, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mInterstitialView:Landroid/view/View;

    .line 76
    .local v0, banner:Landroid/view/View;
    sput-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->sImageAdaptor:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;

    .line 77
    iput-object v1, v2, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mInterstitialView:Landroid/view/View;

    .line 79
    new-instance v1, Landroid/widget/FrameLayout;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->mActivity:Landroid/app/Activity;

    invoke-direct {v1, v3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    .line 80
    .local v1, layout:Landroid/widget/FrameLayout;
    new-instance v3, Landroid/widget/FrameLayout$LayoutParams;

    const/16 v4, 0x11

    invoke-direct {v3, v5, v5, v4}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

    invoke-virtual {v1, v0, v3}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 84
    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->mActivity:Landroid/app/Activity;

    invoke-virtual {v3}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    const-string v4, "interstitialShowtime"

    const/16 v5, 0xf

    invoke-virtual {v3, v4, v5}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v3

    iput v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->mShowtime:I

    .line 85
    iget v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->mShowtime:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-direct {p0, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->autoClose(Ljava/lang/Integer;)V

    goto :goto_0
.end method

.method public onDestroy(Landroid/app/Activity;)V
    .locals 3
    .parameter "curerntActivity"

    .prologue
    const/4 v2, 0x0

    .line 91
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->mHandler:Landroid/os/Handler;

    if-eqz v0, :cond_0

    .line 92
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->mCloseRunnable:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 94
    :cond_0
    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->mHandler:Landroid/os/Handler;

    .line 95
    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->mCloseRunnable:Ljava/lang/Runnable;

    .line 96
    const/4 v0, 0x0

    sput-boolean v0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->sIsShowing:Z

    .line 97
    return-void
.end method

.method public onKey(Landroid/app/Activity;ILandroid/view/KeyEvent;)Z
    .locals 1
    .parameter "activity"
    .parameter "keyCode"
    .parameter "event"

    .prologue
    .line 128
    const/4 v0, 0x0

    return v0
.end method

.method public onPause(Landroid/app/Activity;)V
    .locals 2
    .parameter "curerntActivity"

    .prologue
    .line 101
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->mCloseRunnable:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 102
    return-void
.end method

.method public onResume(Landroid/app/Activity;)V
    .locals 1
    .parameter "curerntActivity"

    .prologue
    .line 106
    iget v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->mShowtime:I

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->autoClose(Ljava/lang/Integer;)V

    .line 107
    return-void
.end method

.method public onTouchEvent(Landroid/app/Activity;Landroid/view/MotionEvent;)Z
    .locals 1
    .parameter "currentActivity"
    .parameter "event"

    .prologue
    .line 133
    const/4 v0, 0x0

    return v0
.end method

.method public showDefaultCloseButton()Z
    .locals 1

    .prologue
    .line 143
    const/4 v0, 0x1

    return v0
.end method
